package demo;

public class car extends transport{
    String speed;
    car(String name, String speed) {
        super(name);
        this.speed = speed;
    }
    void say(){
        System.out.println("我是"+name+",我能跑"+speed+"码");
    }
}
